package com.easyOrder.param.user;

import com.easyOrder.domain.Entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;


@ApiModel(description = "登录参数。")
@JsonIgnoreProperties
public class LoginParameter extends Entity {

    /**
     *
     */
    private static final long serialVersionUID = -1564766853591695499L;

    private Long id;

    @ApiModelProperty(value = "租户（与卡序列号二选一）", required = true)
    private String tenantCode;

    @ApiModelProperty(value = "帐号（与卡序列号二选一）", required = true)
    private String code;

    @ApiModelProperty(value = "密码（与卡序列号二选一）", required = true)
    private String password;

    @ApiModelProperty(value = "卡序列号（与租户、帐号、密码二选一）", required = true)
    private String cardSerial;

    @ApiModelProperty(value = "客户端类型（1Android,2IOS,3PC）")
    private Integer clientTypeId;

    @ApiModelProperty(value = "客户端（设备码或IP地址）")
    private String client;

    @ApiModelProperty(value = "应用", hidden = true)
    private String application;

    @ApiModelProperty(value = "纬度", hidden = true)
    private Double latitude;

    @ApiModelProperty(value = "经度", hidden = true)
    private Double longitude;

    @ApiModelProperty(value = "设备ID", hidden = true)
    private String deviceId;

    @ApiModelProperty(value = "型号ID", hidden = true)
    private String deviceModel;

    public String getDeviceModel() {
        return deviceModel;
    }

    public void setDeviceModel(String deviceModel) {
        this.deviceModel = deviceModel;
    }

    /**
     * 厂商设备ID, 刷入的设备ID
     */
    private String vendorDeviceId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getVendorDeviceId() {
        return vendorDeviceId;
    }

    public void setVendorDeviceId(String vendorDeviceId) {
        this.vendorDeviceId = vendorDeviceId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the latitude
     */
    public Double getLatitude() {
        return latitude;
    }

    /**
     * @return the longitude
     */
    public Double getLongitude() {
        return longitude;
    }

    /**
     * @return the deviceId
     */
    public String getDeviceId() {
        return deviceId;
    }

    /**
     * @param latitude the latitude to set
     */
    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    /**
     * @param longitude the longitude to set
     */
    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    /**
     * @param deviceId the deviceId to set
     */
    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCardSerial() {
        return cardSerial;
    }

    public void setCardSerial(String cardSerial) {
        this.cardSerial = cardSerial;
    }

    public Integer getClientTypeId() {
        return clientTypeId;
    }

    public void setClientTypeId(Integer clientTypeId) {
        this.clientTypeId = clientTypeId;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "LoginParameter [tenantCode=" + tenantCode + ", code=" + code
                + ", password=" + password + ", cardSerial=" + cardSerial
                + ", clientTypeId=" + clientTypeId + ", client=" + client
                + ", application=" + application + ", latitude=" + latitude
                + ", longitude=" + longitude + ", deviceId=" + deviceId + "]";
    }
}

